x86/traps: export the exception_table[] function pointer table to C
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 11 Feb 2015 16:16:18 +0000 (17:16 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 11 Feb 2015 16:16:18 +0000 (17:16 +0100)
commitd3eb16b8a7c06f0d2a2110948a8477a62b541bbf
treefde9bd50ca199f3484f02e1886f5bcd3172d3a59
parentd40cbb98a3eb447b8055ec4e70e93a6f22850ac5
x86/traps: export the exception_table[] function pointer table to C

and use it in preference to the direct call to do_nmi() in vmx.c

The value 'TRAP_last_reserved' was only used where 'TRAP_nr' would be more
appropriate, so is replaced.

No functional change

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vmx/vmx.c
xen/arch/x86/x86_64/entry.S
xen/include/asm-x86/processor.h